package com.eamois.action.graph;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.graph.GraphJobCardType;
import com.eamois.service.graph.GraphJobCardTypeService;
import com.eamois.util.ServiceFactory;

public class GraphJobCardTypeAction extends BaseAction {
	private GraphJobCardTypeService graphJobCardTypeService ;

	

	public GraphJobCardTypeService getGraphJobCardTypeService() {
		return graphJobCardTypeService;
	}


	public void setGraphJobCardTypeService(
			GraphJobCardTypeService graphJobCardTypeService) {
		this.graphJobCardTypeService = graphJobCardTypeService;
	}


	public GraphJobCardTypeAction() {
		setGraphJobCardTypeService((GraphJobCardTypeService) ServiceFactory.getInstance()
				.getBean("graphJobCardTypeService"));
	}
	

	public Collection<GraphJobCardType> findAll(){
		return this.getGraphJobCardTypeService().findAll();
	}
	public void save(GraphJobCardType type){
		 this.getGraphJobCardTypeService().save(type);
	}
	public void remove(GraphJobCardType type){
		 this.getGraphJobCardTypeService().remove(type);
	}

}
